package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**订单列表模型   申请停车订单发票实体类
 * Created by Ellis.Li on 2017/5/12.
 */
public class ApplyParkingReceiptInfo extends BaseModel<ApplyParkingReceiptInfo> {
    /** 停车地点*/
    public String receipt_applyparkingorder_location;
    /** 停车金额*/
    public String receipt_applyparkingorder_price;
    /** 车牌号*/
    public String receipt_applyparkingorder_carnum;
    /** 停车时长*/
    public String receipt_applyparkingorder_time;
    /** 停车起始*/
    public String receipt_applyparkingorder_start;
    /** 停车最终*/
    public String receipt_applyparkingorder_end;




//    /** 停车订单ID*/
//    public String parking_order_id;
//    /** 停车订单编号*/
//    public String parking_order_no;
//    /** 停车订单状态ID*/
//    public String parking_order_status_id;
//    /** 停车订单状态名称*/
//    public String parking_order_status_name;
//    /** 停车订单状态显示名称*/
//    public String parking_order_status_display_name;
//    /** 总计*/
//    public String total_amount;
//    /** 格式化(10.00元)*/
//    public String total_amount_format;
//    /** 附件信息(1-是/0-否)*/
//    public String is_extend_info;
//    /** 订单时间(unix_time)*/
//    public String order_time;
//    /** 订单时间(格式化)*/
//    public String order_time_format;
//
    @Override
    public ApplyParkingReceiptInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            receipt_applyparkingorder_location = jsonObject.optString("receipt_applyparkingorder_location");
            receipt_applyparkingorder_price = jsonObject.optString("receipt_applyparkingorder_price");
            receipt_applyparkingorder_carnum = jsonObject.optString("receipt_applyparkingorder_carnum");
            receipt_applyparkingorder_time = jsonObject.optString("receipt_applyparkingorder_time");
            receipt_applyparkingorder_start = jsonObject.optString("receipt_applyparkingorder_start");
            receipt_applyparkingorder_end = jsonObject.optString("receipt_applyparkingorder_end");
//            car_order_status_name = jsonObject.optString("car_order_status_name");
//            car_order_status_display_name = jsonObject.optString("car_order_status_display_name");
//            total_amount = jsonObject.optString("total_amount");
//            total_amount_format = jsonObject.optString("total_amount_format");
//            is_extend_info = jsonObject.optString("is_extend_info");
//            order_time = jsonObject.optString("order_time");
//            order_time_format = jsonObject.optString("order_time_format");
//            return this;
        }
        return null;
    }
}
